<?php
$factory->define(App\Models\Course::class, function (Faker\Generator $faker) {
    static $level = 1;
    return [
        'name' => $faker->word,
        'description' => $faker->sentence,
        'lesson_count' => 24,
        'is_published' => 1,
        'level' => $level++,
        'cover' => rand(0,3),
        'series_id' => 1,
        'price' => $faker->randomFloat()
    ];
});